<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>航班动态</title>
	</head>
	<script type="text/javascript" src="<%=basePath%>js/jquery-1.3.1.js"></script>
	<link rel="stylesheet" type="text/css"
		href="<%=basePath%>css/showTickets.css">
	<link rel="stylesheet" type="text/css"
		href="<%=basePath%>css/splitPage.css">
	<link rel="stylesheet" type="text/css" href="css/splitPage.css">
	<link href="css/hangbandongtai.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
	jQuery(document).ready(function() {
		jQuery(".xtable tr").mouseover(function() {
			jQuery(this).addClass("ovr");
		}).mouseout(function() {
			jQuery(this).removeClass("ovr");
		});
		jQuery(".xtable tr:even").addClass("even");
	});
	$(function() {
		$("#page").change(function() {
			var page = $("#page").val();
			window.location.href = "FlightInfo!getFlightInfo?page=" + page;
		});
	});
</script>

	<body>
		<div class="box">
			<jsp:include page="top.jsp"></jsp:include>
			<!--内容部分-->

				<div class="main">
				<div id="banner">
					<div id="banner-1"></div>

					<div id="banner-5">


						<div class="xtable">
						<table width="100%" cellspacing="1" class="xtable" id="xtable">
							<s:if test="pageBean.list.size == 0">
								<tr>
									<td colspan="11" align="center">
										暂无数据!
									</td>
								</tr>
							</s:if>
							<s:iterator value="pageBean.list">
								<tr>

									<td align="center">
										<b><s:property value="id" /> </b>
									</td>
									<td align="center">
										<b><s:property value="flight_name" /> </b>
									</td>
									<td align="center">
										<b><s:property value="start_flight" /> </b>
									</td>
									<td align="center">
										<b><s:property value="end_flight" /> </b>
									</td>
									<td align="center">
										<b><s:property value="times" /> </b>
									</td>
									<td align="center">
										<b><s:property value="capacity" /> </b>
									</td>
									<td align="center">
										<b><s:property value="price" /> </b>
									</td>
								</tr>
							</s:iterator>
						<tr>
							<td colspan="11">
								<table width="100%" >
									<tr>
										<td width="30%" align="left">
											共检索到
											<s:property value="pageBean.allRow" />
											条记录
										</td>
										<td align="right" id="pagelist">
											<ul>
												<li>
													<select name="page" id="page">
														<s:iterator value="pageBean.pageNumbers"
															status="pageNumbers">
															<s:iterator
																value="pageBean.pageNumbers[#pageNumbers.index]">
																<option value="<s:property/>">
																	<s:property />
																</option>
															</s:iterator>
														</s:iterator>
													</select>
												</li>
												<li class="pageinfo">
													共
													<s:property value="pageBean.totalPage" />
													页
												</li>
												<li class="pageinfo">
													第
													<s:property value="pageBean.currentPage" />
													页
												</li>
												<s:if test="%{pageBean.currentPage != pageBean.totalPage}">
													<li>
														<a
															href="FlightInfo!getFlightInfo?page=<s:property value="pageBean.totalPage"/>">尾页</a>
													</li>
													<li>
														<a
															href="FlightInfo!getFlightInfo?page=<s:property value="%{pageBean.currentPage+1}"/>">下一页</a>
													</li>
												</s:if>
												<s:if test="%{pageBean.currentPage == 1}"></s:if>
												<s:else>
													<li>
														<a
															href="FlightInfo!getFlightInfo?page=<s:property value="%{pageBean.currentPage-1}"/>">上一页</a>
													</li>
													<li>
														<a href="FlightInfo!getFlightInfo?page=1">首页</a>
													</li>
												</s:else>
											</ul>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						</table>

					</div>
				</div>
			
			<!--版权-->
		<div class="bottom">
    
    <table width="100%" border="0"  class="STYLE4" style="font-size: 12px" >
    <tr>
    <td><br/></td>
    </tr>
      <tr  >
        <td align="center">友情链接：<a href="http://www.google.com">Google </a>| <a href="http://cn.bing.com">Bing </a>| <a href="http://www.baidu.com">百度</a></td>
      </tr>
      <tr>
        <td align="center">邮箱地址：0100121215@live.com 联系电话：001401001</td>
      </tr>
      <tr>
        <td align="center">Copyright&copy; 2011-2013 版权所有AIRLINE.COM</td>
      </tr>
    </table>
    
     </div>
		</div>
</div>
	</body>
</html>
